package model

import (
	"gorm.io/gorm"
	"time"
)

type User struct {
	gorm.Model
	Name    string    `json:"name" form:"name"`
	IsVip   int       `json:"isVip" form:"isVip"`
	VipTime time.Time `json:"vip_time" form:"vip_time"`
}
type Video struct {
	gorm.Model
	Title       string `json:"title" form:"title"`
	CovUrl      string `json:"cov_url" form:"cov_url"`
	CheckStatus string `json:"check_status" form:"check_status"`
	PlayCount   int    `json:"play_count" form:"play_count"`
}
type VideoEp struct {
	gorm.Model
	VideoId int    `json:"video_id" form:"video_id"`
	Title   string `json:"title" form:"title"`
	Types   string `json:"types" form:"types"`
	Desc    string `json:"desc" form:"desc"`
}
type Chap struct {
	gorm.Model
	VideoId   int    `json:"video_id" form:"video_id"`
	VideoEpId int    `json:"video_ep_id" form:"video_ep_id"`
	Title     string `json:"title" form:"title"`
	Num       int    `json:"num" form:"num"`
	IsFree    string `json:"is_free" form:"is_free"`
}
type Check struct {
	gorm.Model
	UserId       int    `json:"user_id" form:"user_id"`
	VideoId      int    `json:"video_id" form:"video_id"`
	CheckStatus  string `json:"check_status" form:"check_status"`
	CheckMessage string `json:"check_message" form:"check_message"`
}
